export const tableOption = {
    expandAll: false,
    border: true,
    index: true,
    tree:true,
    column: [{
        label: '部门名称',
        prop: 'name',
        align: 'center',
        span: 24,
        rules: [{
            required: true,
            message: '部门名称不能为空',
            trigger: 'blur'
        }]
    },
        {
            label: '所属父部门',
            align: 'center',
            slot: true,
            formslot: true,
            hide:true,
            prop: 'parentId',
            span: 24,
            rules: [{
                required: true,
                message: '请选择父级',
                trigger: 'blur'
            }]
        },
        {
            label: '排序',
            prop: 'sort',
            align: 'center',
            dataType:"number",
            span: 24
        },
        {
            label: '创建时间',
            prop: 'createTime',
            type: 'datetime',
            align: 'center',
            addDisplay: false,
            editDisplay: false,
            format: 'yyyy-MM-dd HH:mm',
            valueFormat: 'yyyy-MM-dd HH:mm:ss',
            span: 24
        },
        {
            label: '更新时间',
            prop: 'updateTime',
            type: 'datetime',
            align: 'center',
            addDisplay: false,
            editDisplay: false,
            format: 'yyyy-MM-dd HH:mm',
            valueFormat: 'yyyy-MM-dd HH:mm:ss',
            span: 24
        }]
}
